﻿package com.tudou.utils
{

    public class ColorUtil extends Object
    {

        public function ColorUtil()
        {
            return;
        }// end function

        public static function htmlToAsColor(param1:String) : uint
        {
            var _loc_2:String = null;
            if (param1 == null || param1 == "")
            {
                return 0;
            }
            if (param1.charAt(0) == "#")
            {
                _loc_2 = "0x" + param1.substr(1);
                return uint(_loc_2);
            }
            return uint(param1);
        }// end function

        public static function AsToHtmlColor(param1:uint) : String
        {
            return "#" + param1.toString(16);
        }// end function

    }
}
